package DesignMode.Proxy.staticProxy;

/**
 * @author VX5
 * @Title: MJC
 * @ProjectName DataStructure
 * @Description: TODO
 * @date ${DAT}11:29
 */
//代理对象
public class TeacherDaoProxy implements IteacherDao {

    private IteacherDao target;//目标对象

    public TeacherDaoProxy(IteacherDao target) {
        this.target = target;
    }

    @Override
    public void teacher() {
        System.out.println("开始代理 完成某些操作");
        target.teacher();
        System.out.println("代理结束");
    }
}
